package com.example.data.mapper;

import com.example.data.model.User;

import java.util.List;

/**
 * Created by hldev on 16-12-7.
 */
public interface UserMapper {

    User findOne(Integer id);

    User findByUserName(String userName);

    List<User> findAll();

    void updateUser(User user);

    void createUser(User user);

    void delete(Integer id);
}
